#pragma once

#include<api/video_codecs/video_decoder_factory.h>

namespace xrtc {

class ExternalVideoDecoderFactory :public webrtc::VideoDecoderFactory
{
public:
	virtual std::vector<webrtc::SdpVideoFormat> GetSupportedFormats() const override;
	virtual std::unique_ptr<webrtc::VideoDecoder> CreateVideoDecoder(const webrtc::SdpVideoFormat& format) override;

private:
	std::unique_ptr<ExternalVideoDecoderFactory> CreateExternalVideoDecoderFactory();
};

std::unique_ptr<ExternalVideoDecoderFactory> CreateExternalVideoDecoderFactory();
}